xen/arm: optee: Allocate anonymous domheap pages
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Mon, 6 Sep 2021 13:42:21 +0000 (16:42 +0300)
committerJulien Grall <jgrall@amazon.com>
Thu, 14 Oct 2021 16:12:47 +0000 (16:12 +0000)
commitb75838ad6c4f42c93efee83fc2508c78641e1b57
tree21f98399f61ee022076a8dd01e471ee843f9d5c8
parent57f87857dc2de452a796d6bad4f476510efd2aba
xen/arm: optee: Allocate anonymous domheap pages

Allocate anonymous domheap pages as there is no strict need to
account them to a particular domain.

Since XSA-383 "xen/arm: Restrict the amount of memory that dom0less
domU and dom0 can allocate" the dom0 cannot allocate memory outside
of the pre-allocated region. This means if we try to allocate
non-anonymous page to be accounted to dom0 we will get an
over-allocation issue when assigning that page to the domain.
The anonymous page, in turn, is not assigned to any domain.

CC: Julien Grall <jgrall@amazon.com>
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Acked-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/tee/optee.c